import 'package:gameplay_flutter/lib_basemodel/discover/moment_entity.dart';

const _prefix = '_jr_ev_';

class EventConstant {
  EventConstant._();

  /// 飘屏
  static const floatScreen = '$_prefix.float.screen';

  /// 心愿tag更新
  static const refreshWishTag = '$_prefix.refresh.wish.tag';

  /// login
  static const login = '$_prefix.login';

  static const sendChatMessage = '$_prefix.sendChatMessage';
  static const updateChatMessage = '$_prefix.updateChatMessage';

  static const refreshFriendPlaying = '$_prefix.refreshFriendPlaying';

  static const relationChanged = '$_prefix.relationChanged';
  static const sendGiftSuccess = '$_prefix.sendGiftSuccess';
  static const addNewGiftConfig = '$_prefix.addNewGiftConfig';
  static const cpChooseChanged = '$_prefix.cpChooseChanged';

  static const refreshConfInfo = '$_prefix.refreshConfInfo';

  static String saveQuickMsgSuccess(int scene) => '$_prefix.saveQuickMsgSuccess.$scene';

  static const refreshCommodityList = '$_prefix.refreshCommodityList';

  static const rechargeCompleted = '$_prefix.rechargeCompleted';
  static const gameLoadFinish = '$_prefix.gameLoadFinish';

  ///web游戏加载完成
  static const bottomBarIndexChanged = '$_prefix.bottomBarIndexChanged';
  static const intimacyUpgrade = '$_prefix.IntimacyUpgrade';

  static const followUser = '$_prefix.followUser';
}

class FollowUserAction {}
class UpdateDiscoverAction {}

class LikeAction {
  MomentEntity moment;

  LikeAction(this.moment);
}
class UnLikeAction {
  MomentEntity moment;

  UnLikeAction(this.moment);
}

class JumpToDiscoverAction {}
